//
//  NetworkTools+User.swift
//  SinaWeibo
//
//  Created by celeste on 16/5/18.
//  Copyright © 2016年 celeste. All rights reserved.
//

import Foundation


extension NetworkTools {
    
    func loadUser(access_token: String, uid: String, finished:(result: [String: AnyObject]?)->()) {
        
        let urlString = "https://api.weibo.com/2/users/show.json"
        let params = ["uid": uid, "access_token": access_token]
        
        request(.GET, URLString: urlString, parameter: params, finished: finished)
    }
}